Optimal. Leaf size=34 \[ \sqrt {x^2-4 x+3}-\tanh ^{-1}\left (\frac {2-x}{\sqrt {x^2-4 x+3}}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {640, 621, 206} \begin {gather*} \sqrt {x^2-4 x+3}-\tanh ^{-1}\left (\frac {2-x}{\sqrt {x^2-4 x+3}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 621
Rule 640
Rubi steps
\begin {align*} \int \frac {-1+x}{\sqrt {3-4 x+x^2}} \, dx &=\sqrt {3-4 x+x^2}+\int \frac {1}{\sqrt {3-4 x+x^2}} \, dx\\ &=\sqrt {3-4 x+x^2}+2 \operatorname {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {-4+2 x}{\sqrt {3-4 x+x^2}}\right )\\ &=\sqrt {3-4 x+x^2}-\tanh ^{-1}\left (\frac {2-x}{\sqrt {3-4 x+x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 30, normalized size = 0.88 \begin {gather*} \sqrt {x^2-4 x+3}+\tanh ^{-1}\left (\frac {x-2}{\sqrt {x^2-4 x+3}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.14, size = 34, normalized size = 1.00 \begin {gather*} \sqrt {x^2-4 x+3}+2 \tanh ^{-1}\left (\frac {\sqrt {x^2-4 x+3}}{x-3}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 29, normalized size = 0.85 \begin {gather*} \sqrt {x^{2} - 4 \, x + 3} - \log \left (-x + \sqrt {x^{2} - 4 \, x + 3} + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.23, size = 30, normalized size = 0.88 \begin {gather*} \sqrt {x^{2} - 4 \, x + 3} - \log \left ({\left | -x + \sqrt {x^{2} - 4 \, x + 3} + 2 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 26, normalized size = 0.76 \begin {gather*} \ln \left (x -2+\sqrt {x^{2}-4 x +3}\right )+\sqrt {x^{2}-4 x +3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.89, size = 29, normalized size = 0.85 \begin {gather*} \sqrt {x^{2} - 4 \, x + 3} + \log \left (2 \, x + 2 \, \sqrt {x^{2} - 4 \, x + 3} - 4\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.52, size = 25, normalized size = 0.74 \begin {gather*} \ln \left (x+\sqrt {x^2-4\,x+3}-2\right )+\sqrt {x^2-4\,x+3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x - 1}{\sqrt {\left (x - 3\right ) \left (x - 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________